/**
 * Copyright (C) 2017 - 2020 https://github.com/joewee
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bifrost.model;

import com.bifrost.entity.Coupon;
import com.bifrost.entity.CouponDetail;

/**
 *
 *
 *@author joewee
 *@version 1.0.0
 *@Date 2018/1/22 10:48
 */
public class CouponResponse {
    private Coupon coupon;
    private CouponDetail couponDetail;
    private boolean success;
    private String failureReason;

    public CouponResponse(Coupon coupon,CouponDetail couponDetail, boolean success, String failureReason) {
        this.coupon=coupon;
        this.couponDetail = couponDetail;
        this.success = success;
        this.failureReason = failureReason;
    }

    public Coupon getCoupon() {
        return coupon;
    }

    public void setCoupon(Coupon coupon) {
        this.coupon = coupon;
    }

    public CouponDetail getCouponDetail() {
        return couponDetail;
    }

    public void setCouponDetail(CouponDetail couponDetail) {
        this.couponDetail = couponDetail;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getFailureReason() {
        return failureReason;
    }

    public void setFailureReason(String failureReason) {
        this.failureReason = failureReason;
    }
}
